home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14472 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: vision1.engr.utk.edu!zhang
  2. From: zhang@vision1.engr.utk.edu (Gang Zhang)
  3. Newsgroups: comp.lang.c++
  4. Subject: HELP: How to append a menu to a CFileDialog box?
  5. Date: 30 Mar 1996 20:16:45 GMT
  6. Organization: University of Tennessee, Knoxville
  7. Message-ID: <4jk4rd$g8@gaia.ns.utk.edu>
  8. NNTP-Posting-Host: vision1.engr.utk.edu
  9.  
  10.  
  11.    I have a appl writen in MFC that will open a file and do
  12. some process on it. I hide the mainfram window, and in the
  13. mainfram's oninit function, I created a CFileDialog object
  14. and used CFileDialog::DoModal(). The problem is, I want
  15. to show the about dialog box, and I will need the popup menu
  16. (click right mouse button on the open file dialog bar, it will 
  17. appear, and has minmize and close two menuitems) to append a
  18. new menuitem "about".  The problem is, after I inherite
  19. the CFiledialog class to my new class, and overwrite the
  20. oninitdialog() function, I can't use GetMenu() to get the menu,
  21. it always return a NULL. (I think that is because the dialog box
  22. really don't have a menu)  What should I do to append something 
  23. to the popupmenu?  
  24.  
  25.   Thanks in advance!
  26.   Gang
  27. .
  28.  
  29.